package com.zzy.web.controller.order;

import com.zzy.common.annotation.Log;
import com.zzy.common.core.controller.BaseController;
import com.zzy.common.core.domain.AjaxResult;
import com.zzy.common.core.page.TableDataInfo;
import com.zzy.common.enums.BusinessType;
import com.zzy.system.domain.SkuStock;
import com.zzy.system.service.ISkuStockService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

/**
 * 登录验证
 * 
 * @author zzy
 */
@Api(value = "Order", tags = {"海南浪潮库存列表"}, hidden = false)
@RestController
public class SkuStockController extends BaseController
{
    @Autowired
    private ISkuStockService iSkuStockService;



    @GetMapping("/getGuanmaiSkuStock")
    @ApiOperation("获取观麦库存信息")
    public AjaxResult getGuanmaiSkuStock(@RequestParam(value = "status",defaultValue = "15") Integer status,
                                              @RequestParam("startDate") String startDate,
                                              @RequestParam("endDate") String endDate,
                                              @RequestParam(value = "offset",defaultValue = "0") Integer offset,
                                              @RequestParam(value = "limit",defaultValue = "100") Integer limit,
                                              @RequestParam(value = "queryType",defaultValue = "1") Integer queryType
    ) throws Exception {
        AjaxResult ajax = AjaxResult.success();
        iSkuStockService.getGuanmaiSkuStock(status, startDate, endDate, offset, limit,queryType);
        return ajax;
    }

}
